using System;
using System.Data;
using PCSComUtils.PCSExc;
using PCSComProduct.Costing.DS;

namespace PCSComProduct.Costing.BO
{
	public class DeleteSTDCostBO //: IDeleteSTDCostBO
	{
		private const string THIS = "PCSComProduct.Costing.BO.DeleteSTDCostBO";
		public DeleteSTDCostBO()
		{
			//
			// TODO: Add constructor logic here
            //
		}
		public void Add(object pObjectDetail)
		{
			// TODO:  

		}
	
		public void Delete(object pObjectVO)
		{
			// TODO:  

		}
	
		public object GetObjectVO(int pintID, string VOclass)
		{
			// TODO:  
			return null;
		}
	
		public void Update(object pObjectDetail)
		{
			// TODO:  

		}
	

		public void UpdateDataSet(DataSet dstData)
		{
			// TODO:  

		}
		//**************************************************************************              
		///    <Description>
		///       Delete data from ITM_Cose and ITM_CostOperation table
		///    </Description>
		///    <Inputs>
		///    </Inputs>
		///    <Outputs>
		///    </Outputs>
		///    <Returns>
		///       void
		///    </Returns>
		///    <Authors>
		///       TraDa
		///    </Authors>
		///    <History>
		///       Tuesday, March 22, 2005
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************
		//[AutoComplete(true)]
		public void DeleteCost(int pintCCNID, int pintProductID)
		{
			
			try
			{
				ITM_CostDS dsCost = new ITM_CostDS();
				ITM_CostOperationDS dsCostOperation = new ITM_CostOperationDS();
				//Delete data from ITM_Cost table
				dsCost.Delete(pintCCNID, pintProductID);
				//Delete data from ITM_CostOperation table
				dsCostOperation.Delete(pintCCNID, pintProductID);
			}
			catch (PCSDBException ex)
			{
				throw ex;
			}
			catch (Exception ex)
			{
				throw ex;
			}
			
			
		}
	}
}
